/**
 * Created by CodeTlan.
 * User: hellreuter
 * Date: 3/22/12
 * Time: 10:40 PM
 */
Ext.define('CT.view.militancia.Form',{
    extend: 'Ctc.view.Form',
    alias: 'widget.formmilitancia',
    initComponent: function(){
        this.callParent(arguments);
    },
    buildItems: function(){
        return [{
            fieldLabel: 'Actividad',
            xtype: 'textarea',
            autoRender: true,
            autoScroll: true,
            name: 'actividad'
        },{
            xtype: 'datemx',
            name: 'fecha',
            fieldLabel: 'Fecha'
        }];
    },
    buildButtons:function(){
        return [{
            text: 'Cancelar',
            handler: function(){
                this.up('form').getForm().reset();
            }
        },{
            text: 'Enviar',
            formBind: true,
            disabled: true,
            action: 'add'
        }];
    }
});